package com.knowvoyage.knowvoyageserver.service;

import com.knowvoyage.knowvoyageserver.pojo.entity.User;
import com.knowvoyage.knowvoyageserver.pojo.vo.Result;

import java.util.List;

public interface UserService {
    Result<Boolean> insert(User user);
    Result<User> selectById(Long userId);
    Result<User> selectByPhone(String phone);
    Result<Boolean> update(User user);
    Result<Boolean> delete(Long userId);
    Result<List<User>> selectAll();
    Result<Boolean> updatePassword(Long userId, String oldPassword, String newPassword);
}
